package me.tuyou.spring.cloud.sleuth;

import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.sleuth.annotation.NewSpan;
import org.springframework.cloud.sleuth.annotation.SpanTag;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class HelloService {

    @NewSpan
    public void newSpan(@SpanTag String name) {
        log.info("HelloService.newSpan call");
    }

    public void sameSpan() {
        log.info("HelloService.sameSpan call");
    }
}
